<?php 
	//setcookie("username","",time()-1);
	//setcookie("login[username]","fly",time()-1);
	//setcookie("login[islogin]","1",time()-1);
	var_dump($_COOKIE);
	if($_COOKIE!=array())
	{
		if($_COOKIE["login"]["islogin"]==1)
			echo "ok";
	}	//*/	
	//,time()-1
	/*
	mysql_connect("localhost", "root", "123456");
	mysql_select_db("name123");
	
	$sql = "SELECT * FROM test1 WHERE `ID`='1'";

	$result = mysql_query($sql);


	if (mysql_num_rows($result) > 0)
	{
		$view = mysql_result($result, 0, view);
	}
	echo $view;//*/
?>